package com.weichen.studentgameexchange.game.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.weichen.studentgameexchange.common.common.Result;
import com.weichen.studentgameexchange.game.entity.Game;
import com.baomidou.mybatisplus.extension.service.IService;
import com.weichen.studentgameexchange.game.entity.vo.AddGameVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 惟尘
 * @since 2025-02-01
 */
public interface IGameService extends IService<Game> {

    Result adminAdd(AddGameVo addGameVo);

    Page<Game> adminPage(String keyword, Integer page, Integer size);

    Boolean adminDeleteOne(Long gameId);

    Result selectAllDeveloper();

    Result userSelectOne(Long gameId);

    Game getGameId(String gameName);

    List<Game> getGamesByIds(List<Long> gameIds);

    List<Game> getLikeGame(String gameName);

    Result userPage(String gameName, Integer page, Integer size);

    Result userSortPage(String gameName, Integer page, Integer size);
}
